<template>
  <div id="box">
    <h3>EventsType---------{{ this.$route.params.type }}</h3>
  </div>
</template>

<script>
export default {
  //传过来的组件类型
  props: ["type"],
};
</script>

<style scoped>
#box {
  position: absolute;
  margin-top: 200px;
  height: 100px;
  width: 300px;
  background-color: pink;
}
</style>